﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataAccessLayer
{
    public partial class CarModel
    {
        public static CarModel FindByCarModelID(linqDatabaseDataContext db, int CarModelID)
        {
            return (from u in db.CarModels where u.ID == CarModelID select u).SingleOrDefault();
        }

        public static List<CarModel> ToList(linqDatabaseDataContext db)
        {
            return (from u in db.CarModels select u).ToList();
        }
    }
}
